<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:p="http://primefaces.org/ui"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:ui="http://java.sun.com/jsf/facelets">

<ui:composition>
	<div id="top">
		<div id="div_nav">
			<h:form>
				<ul id="nav">

					<li><h:panelGrid columns="2" >
							<h:graphicImage library="imagens" name="home.png" width="18" />
							<h:commandLink action="/publico/principal.xhtml" value=" Home">

							</h:commandLink>
						</h:panelGrid></li>

					<li><h:panelGrid columns="2">
							<h:graphicImage library="imagens" name="login_topo.png"
								width="17" />
							<h:commandLink action="/publico/login.xhtml" value=" Login" />
						</h:panelGrid></li>
											
					<li>
					<h:panelGroup rendered="#{contextoBean.usuarioLogado != null}">
					<h:panelGrid columns="2">
						<h:graphicImage library="imagens" name="cad.png" width="17" />
						<h:commandLink action="/publico/meuCadastro.xhtml"
							value=" Meu Cadastro">
							
						</h:commandLink>
					</h:panelGrid>
					</h:panelGroup>
					</li>
					<li>
					<h:panelGroup rendered="#{contextoBean.usuarioLogado == null}">
					<h:panelGrid columns="2" >
					<h:graphicImage library="imagens" name="user.png" width="16" />
					<h:commandLink action="#{usuarioBean.novo}"
							value=" Cadastrar Usuario">
							
						</h:commandLink>
					</h:panelGrid>
					</h:panelGroup>
					</li>
					
					<li>
					<h:panelGrid columns="2" >
					<h:graphicImage library="imagens" name="park.jpg" width="16" />
					<h:commandLink action="#{estacionamentoBean.novo}"
							value=" Cadastrar estacionamento">
							
						</h:commandLink>
						</h:panelGrid>
					</li>
					<li>
					<h:panelGrid columns="2" >
					<h:graphicImage library="imagens" name="eplaca.jpg" width="15" />
					<h:commandLink action="/publico/meuEstacionamento.xhtml"
							value="Meu estacionamento">
							
						</h:commandLink>
						</h:panelGrid>
					</li>

					<li>
										
					<h:panelGroup rendered="#{contextoBean.usuarioLogado != null}">
							<h:panelGrid columns="2">
							<h:graphicImage library="imagens" name="logout.png" width="14" />
							<h:outputLink
								value="#{facesContext.externalContext.requestContextPath}/j_spring_security_logout">
								<h:outputText value="Logout" />
							
							</h:outputLink>
							</h:panelGrid>
					</h:panelGroup>
						
					</li>
					
				</ul>
			</h:form>
		</div>


		<div id="logo">
			<h:form>
				<h:commandLink action="/publico/principal.xhtml">
					<h:graphicImage library="imagens" name="logo_sge.png" height="55" />
				</h:commandLink>
			</h:form>
		</div>
	</div>
</ui:composition>
</html>